const mongoose = require("mongoose");
const Db = require("../");
const schema = new mongoose.Schema({
	context:{
		type:String,
		unique:true,
		required:true
	},
	topNum:{
		type:Number,
		default:0
	},
	downNum:{
		type:Number,
		default:0
	},
	addTime:{
		type:String,
		required:true
	}
},{
	versionKey:false
})
const model = mongoose.model("contentList",schema,"contentList");
module.exports = new Db(model);
